import request from '@/utils/request'

export const reqLogin = data => request.post('/sys/login', data)

export function reqGetInfo() {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

export const reqGetUserPhoto = (id) => request.get(`/sys/user/${id}`)
export function logout() {

}

/**
 * 获取员工详情就看
 * @param {*} id
 * @returns
 */
export const reqGetUserDetailById = (id) => request.get(`/sys/user/${id}`)
/**
 * 跟新员工信息
 * @param {*} data
 * @returns
 */
export const reqSaveUserDetailById = (data) => request.put(`/sys/user/${data.id}`, data)
